package cn.raven.org.service;

import cn.raven.basic.utils.PageList;
import cn.raven.org.domain.Department;
import cn.raven.org.query.DepartmentQuery;

import java.util.List;
/**

* @Description: 部门管理业务层接口
* @Author: king
* @Version: 1.0
* @Date:  2022/6/21 18:39
  */
public interface IDepartmentService {
    //查询所有
    List<Department> findAll();
    //根据id查询
    Department findOne(Long id);
    //新增
    void add(Department department);
    //更新
    void update(Department department);
    //删除
    void del(Long id);
    //分页+高级查询
    PageList<Department> queryData(DepartmentQuery departmentQuery);
}
